package com.sakuracard.stepdemo.web.controller;

import com.sakuracard.stepdemo.model.AFieldEntity;
import com.sakuracard.stepdemo.model.UserLayingEntity;
import com.sakuracard.stepdemo.service.UserLayingService;
import com.sakuracard.stepdemo.web.controller.base.BaseController;
import com.sakuracard.stepdemo.web.model.ResponseResult;
import com.sakuracard.stepdemo.web.model.SearchParams;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userLaying")
public class UserLayingController extends BaseController<UserLayingService, UserLayingEntity, SearchParams> {

  public UserLayingController(UserLayingService service) {
    this.baseService = service;
  }

  @Override
  public ResponseResult<AFieldEntity> getAFields() {
    return ResponseResult.success(new AFieldEntity());
  }
}

